import { renderHook } from "@testing-library/react-hooks";
import { useMount } from ".";

describe("useMount test", () => {
  const foo = jest.fn(() => {
    console.log("mounted!");
  });
  it("foo should be fire", () => {
    renderHook(() => useMount(foo));
    expect(foo).toHaveBeenCalled();
  });
});
